home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 001 / drlist.arc / DRLIST.DOC < prev   
Encoding:
Text File  |  1986-06-14  |  23.7 KB  |  583 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                         DRLIST Version G
  7.  
  8.                 (c) Copyright Vernon D. Buerg 1986
  9.  
  10.  
  11.  
  12.                      Special BBS/CTTY Version
  13.                      ________________________
  14.  
  15.  
  16.                            June 14, 1986
  17.  
  18.  
  19.  
  20.  
  21.                         Table of Contents
  22.                         -----------------
  23.  
  24.                 Description ....................... 1
  25.                 Display format .................... 2
  26.                  Status line .......................2
  27.                  Command line ......................3
  28.                 Keys and commands ................. 4
  29.                  Positioning to lines ............. 5
  30.                 Cloning procedure ................. 6
  31.                  DEBUG Information ................ 6
  32.                  Screen attributes ................ 7
  33.                 Searching for text................. 8
  34.                 Filtering ......................... 9
  35.                 Update history ................... 10
  36. |               Special version remarks .......... 11
  37.                 Restrictions ..................... 11
  38.  
  39.                                                       DRLIST     Page 1
  40.  
  41.  Command  DRLIST
  42.  -------------
  43.  
  44.  Purpose:  To display the contents of an ASCII text file,  line by  line
  45.         with the aid of scrolling, positioning and filtering commands.
  46.  
  47.  Format:   DRLIST  [d:][path]filename[.ext]
  48.  
  49.  Remarks:  An ASCII file of any size may be listed.
  50.  
  51.            The "filename" is optional.  If omitted, you are prompted  to
  52.         to enter  a filename.   You may  include drive,  path, and  wild
  53.         cards in the file name.   The first file which matches  the name
  54.         is displayed until an end-of-file character is encountered. Each
  55.         file which matches the "filename" may be displayed.
  56.  
  57.            DRLIST was  designed to display ASCII files.  That  is, files
  58.         which  contain  text  and  not  binary  or  control codes.  Text
  59.         characters  usually  range  from a  value of 32 to 127.  To view
  60. |       binary files (COM, EXE, etc), the D-key hex dump display  option
  61.         is available.
  62.  
  63.            Characters  below  32  (a  blank)  are  replaced with a funny
  64.         character to indicate that a non-displayable character has  been
  65.         encountered.  This character is an upside-down question mark.
  66.  
  67.            Characters above 127 may be valid graphic characters, and may
  68.         be displayed if  the '8' command  is in effect.   To insure that
  69.         characters above ASCII value 127 are not displayed, use the  '7'
  70.         command.
  71.  
  72.            The top line of the display gives the file name, current right
  73.         scroll offset, and the file's creation date and time. Optionally,
  74. |       a ruler may be displayed on the top line by using the R key.
  75.  
  76.            The  file  is  displayed  with  one  logical  record  on each
  77.         80-column display line.   A logical record  ends in a  linefeed.
  78.         The maximum logical record may  be 256 characters long.  If  the
  79.         record exceeds 80  characters, you may  view the portion  beyond
  80.         the 80 columns  by using the  scroll right command,  or by using
  81.         the Wrap feature.
  82.  
  83.            The Wrap  command toggles  ON or  OFF the  wrapping of  lines
  84.         longer than 80 characters.  With Wrap on, lines are displayed in
  85.         their  entirety,  80  characters  per  display line.  The scroll
  86.         -left and -right functions are disabled when Wrap is ON.
  87.  
  88.            The file may  be PRINTed as  it it displayed.   The P command
  89.         toggles  the  printer  on  or  off.   When  first entered, the P
  90.         command causes the current screen  to be printed.  As new  lines
  91.         are displayed, they too are printed.  Printing may be stopped by
  92.         entering another P command.  The PrtSc key may also be used, but
  93.         the title and prompt lines will be printed with the lines of the
  94.         file. Empty lines cause a line to be skipped on the printer. The
  95.         letter P is displayed in column 80 of the top line while printing.
  96.                                                       DRLIST     Page 2
  97.  
  98.  Display format
  99.  --------------
  100.  
  101.            The monitor display is defined in terms of lines and columns.
  102.         A typical monitor can display 25 lines of 80 columns each. DRLIST
  103.         attempts to use the number of lines and columns for the monitor
  104.         mode in use.  For example, if the monitor is in 40 column mode,
  105.         DRLIST displays only 40 characters per line.
  106.  
  107.            The top line of the display is called the Status line.  The
  108.         bottom line is called the Command line.  The remaining lines are
  109.         called the primary display window, and are usually lines 2
  110.         through 24.
  111.  
  112.  
  113.  Status line format
  114.  ------------------
  115.  
  116.     The Status line has the following format:
  117.  
  118.     DRLIST   lllll +sss mm/dd/yy hh:mm  bKMPSW  - filename
  119.  
  120.     where,
  121.  
  122.         'DRLIST'     is the name of this program
  123.  
  124.         'lllllll'  is the line number of the first line in the
  125.                   display window (usually on line 2)
  126.  
  127.         '+sss'     if displayed, this is the Scroll amount, in
  128.                   multiples of 20, corresponding to the number
  129.                   of columns that the display has been shifted
  130.                   to the right to view records longer than 80
  131.  
  132.         'mm/dd/yy' is the file's creation date
  133.         'hh:mm'    is the file's creation time
  134.  
  135.         'D'       indicates that the hex Dump display option is in use
  136.         'b'       indicates whether the 7-bit, 8-bit, or *-option is
  137.                   in use
  138.         'K'       indicates that the Keyboard flush option is in use
  139.         'M'       indicates that tests for monitor retrace are not made
  140.         'P'       indicates that Print is in use
  141.         'S'       indicates that the C (file sharing) is in use
  142.         'W'       indicates that the Wrap mode is in effect
  143. |       'A'       indicates ANSI mode (on some versions)
  144.                                                       DRLIST     Page 3
  145.  
  146.  Command line format
  147.  -------------------
  148.  
  149.     The Command line has the following format:
  150.  
  151. |   command message ______ Keys: Num-keypad Q=next X=exit ?=Help
  152.  
  153.     where,
  154.  
  155.       'command' indicates the current process:
  156.  
  157.           'Command'   you are being asked to enter a command
  158.                        enter the letter, or press the keys for
  159.                        the action to perform
  160.  
  161.           'Reading '   the file data is being read
  162.           'Filter  '   the file data is being formatted for display
  163.           'Scanning'   the Scan/Find text is being searched for
  164.  
  165.           'Scan   '   you are being asked to enter text to locate
  166.           'Find   '    in the file, up to 31 characters may be entered
  167.  
  168.           '# lines?'   you are being asked to enter a 1 to 5 digit
  169.                        number that is the amount of lines to skip
  170.  
  171.           'Line #? '   you are being asked to enter a 1 to 5 digit
  172.                        line number to which the display is to be
  173.                        positioned
  174.  
  175.  
  176.       'message' may be one of:
  177.  
  178.           '*** Text not found ***'
  179.            the Scan/Text was not found in the file
  180.  
  181.           '   *** Top of file ***'
  182.            the first line of the file is being displayed
  183.  
  184.           '   *** End-of-file ***'
  185.            the last line of the file is being displayed
  186.                                                       DRLIST     Page 4
  187.  
  188.  Key functions and Commands
  189.  --------------------------
  190.  
  191.         On the COMMAND line, enter a letter or control key:
  192.  
  193.         Letter(s)     Default   Function
  194.         ---------     -------   ------------------------
  195.         A                       find next occurance of 'text'
  196.         B                       skip to end of file (bottom)
  197.         C               off     toggles closing of (shared) files
  198. |       D                       toggles hex dump display mode
  199. |       E               on      set hi-bit on, Eight-bit mode
  200.         F                       Find 'text' regardless of case
  201.         H or ?                  list commands (HELP)
  202.         K               off     toggle keyboard flush; if on, commands
  203.                                 may be queued up by holding a key down
  204.         L                       scroll left 20 columns
  205.         N                       down one (next) line
  206.         P               off     toggle printer on or off
  207.         Q                       display next matching file
  208. |       R                       toggles ruler on top line
  209. |       S               off     toggles hi-bit off, Seven-bit mode
  210.         T                       restart from first line (top)
  211.         U                       scroll up one page (23 lines)
  212.         W               off     toggle wrap of lines over 80 chars
  213.         X                       terminate, clear screen and exit to DOS
  214. |       Z                       Exit to DOS with prompt on line 2
  215.  
  216. |       0                       reset scroll to column 1
  217.  
  218.         *               off     toggles special * document filtering
  219.  
  220.  
  221. |       #                       positions to a specific line number
  222.         +                       position a given number of lines forwards
  223.         -                       position a given number of lines backwards
  224.  
  225.         \text                   Find 'text' regardless of case
  226.         /text                   Scan for exact text match
  227.  
  228. |       ,                       change background for main body of display
  229. |       .                       change foreground for main body of display
  230. |       <                       change background for top and bottom lines
  231. |       >                       change foreground for top and bottom lines
  232.  
  233. |       Enter or Space-bar      continue to next page
  234. |       ESCape                  Display next matching file (like Q)
  235.                                                       DRLIST     Page 5
  236.  
  237.  Key functions and Commands (cont.)
  238.  --------------------------
  239.  
  240.  
  241.                 ________________________________
  242.  
  243.                  Numeric keypad with NumLock on
  244.                 ________________________________
  245.  
  246.  
  247.   #  over key        Function
  248.   -------------     -------------------------------------------
  249.   1  END             position to end of file (bottom)
  250.   7  HOME            restart from first line (top)
  251.   9  PgUp            scroll up one page, 23 lines
  252.   3  PgDn            scroll down one page, 23 lines
  253.  
  254.   4  left arrow      scroll left 20 columns
  255.   6  right arrow     scroll right 20 columns
  256.   8  up arrow        up one (previous) line
  257.   2  down arrow      down one (next) line
  258.  
  259.  
  260.     Control key      Function
  261.     -----------     -------------------------------------------
  262.  
  263.      alt-C           clone DRLIST.COM, change colors or options
  264.                      permanently in program file
  265.  
  266.  
  267.  Positioning to Lines
  268.  --------------------
  269.  
  270.            Each displayable line of the file is assigned a line number.
  271.         The first line is assigned line number 1.  The highest allowable
  272.         line number is 65535.  In order to determine the last line
  273.         number, the entire file must be read.  For this reason, the
  274.         first time that the END (bottom) command is issued, it will take
  275.         longer to process.
  276.  
  277.            If the Wrap option is in effect, there is one line number
  278.         required for each 80 bytes of the file records.
  279.  
  280.            If the hex dump option is in effect, there is one line number
  281.         required for each 16 bytes of the file.
  282.  
  283.            You may position to a specific line number by using the
  284. |        # character key. When # is entered, you are prompted for the
  285. |       line number to position to.  Enter the 1 to 5 digit line
  286.         number.  The display will now begin with that line number at the
  287.         top of the screen.
  288.  
  289.            To position forward or backward, you may use the + (plus), or
  290.         - (minus) keys.  You are prompted to enter the number of lines
  291.         to be skipped.  The display resumes at the line number shown on
  292.         the top (status) line, plus or minus the number of lines that
  293.         you specified.
  294.                                                       DRLIST     Page 6
  295.  
  296.  Cloning procedure
  297.  -----------------
  298.  
  299.            The screen colors, the display retrace testing (M), the file
  300. |       closing (C) and ruler (R) options may be permanently set in
  301.         the program by using the alt-C cloning function.
  302.  
  303.            For cloning to take effect, the program must be called
  304.         DRLIST.COM and it must be on the current drive and in the current
  305.         directory.
  306.  
  307.            The clonable options (command toggles) are:
  308.  
  309. |            M     = Mono monitor, affects retrace testing, no effect with ANSI
  310. |            R     = use ruler on top line,
  311. |            C     = file(s) are shared, not left open while displaying
  312. |            D     = hex dump display, like the DEBUG format
  313.              W     = Wrap long lines
  314. |            E/S/* = display all 256 values, or 7-bit, or special cases
  315.              K     = flush Keyboard each time a command is read
  316.  
  317.  
  318.  DEBUG Information
  319.  -----------------
  320.  
  321.            An alternative to cloning is to use DEBUG to make permanent
  322.         changes. Here is a list of key items and their addresses:
  323.  
  324.            0126 - special lines 1 and 25 colors, default is 01 (blue)
  325.                   Refer to a technical reference guide for the
  326.                   attribute values for the colors that you want.
  327.            0128 - normal lines 2 thru 24 colors, default is 02 (green)
  328.            012A - bright color for Find/Scan, default is 0C (bright red)
  329.            012C - options; bits 0 through 6
  330.                    MRSD WHK.  M = mono, x'01'
  331.                               R = ruler, x'02'
  332.                               S = shared, x'04'
  333.                               D = hex display, x'08'
  334.                               W = wrap mode, x'10'
  335.                               H = hi-bit on, x'20'
  336.                               K = kybd flush, x'40'
  337.  
  338.                   By specifying the bit value, the option is enabled.
  339.                   For example, to enable Shared and Retrace, specify
  340.                   a hex value of 05.
  341.  
  342.            The letters and command keys may also be changed.  There are
  343.         two tables involved:  WHAT and WHERE.  The WHAT table contains a
  344.         list of one-byte keyboard codes.  The WHERE table contains a
  345.         list of two-byte addresses.  If you really want to change the
  346.         codes, here are the DEBUG addresses:
  347.  
  348. |          0472 - *WHAT* eye catcher
  349. |          0478 - list of ONE byte command letters and characters
  350.  
  351. |          04A5 - *WHERE1* eye catcher
  352. |          04AD - list of corresponding two byte offsets to routines
  353.  
  354.  
  355.         NOTE: These DEBUG addresses are version dependent.
  356.         ==================================================
  357.                                                       DRLIST     Page 7
  358.  
  359.  Screen attributes
  360.  -----------------
  361.  
  362.            The colors used for displaying the titles and main body of
  363.         text may be changed temporarily or permanently.  To make a
  364.         permanent change, the cloning command alt-C is used.  It
  365.         requires that the DRLIST.COM program file be on the current drive
  366.         and in the current directory.
  367.  
  368.            There are three classes of attributes used.  One for normal
  369.         display lines - lines 2 to 24 - another for special lines -
  370.         lines 1 and 25, and a third for the Find/Scan color.  The border
  371.         is not changed.  The foreground color applies to the characters
  372.         displayed.
  373.  
  374.         These color attributes may be changed by using these function keys:
  375.  
  376.           For the main body of text:
  377.  
  378. |           , (comma) - background color
  379. |           . (period) - foreground color
  380.  
  381.           For the top and bottom lines:
  382.  
  383. |           < (less than)    - background color
  384. |           > (greater than) - foreground color
  385.  
  386.  
  387.         Once you have decided upon the colors, use the alt-C key
  388.         combination to change the DRLIST.COM program file.
  389.  
  390. |       If DRLIST is used from a remote computer, the default colors
  391. |       used by DOS will be changed to those used by DRLIST.
  392.  
  393.                                                       DRLIST     Page 8
  394.  
  395.  Scanning for text
  396.  -----------------
  397.  
  398.  
  399.            You may use  Find (\)  to search for text  regardless  of the
  400.         case, or you may use Scan (/) to find an exact match.
  401.  
  402.            To scan for a character string, type a slash (/) followed  by
  403.         one or more (up to 31)  characters.  The scan text, but not  the
  404.         slash,  is  displayed  on  the  command  line.  The scan is case
  405.         sensitive.  That is, lower case scan text will only match  lower
  406.         lower case file text.
  407.  
  408.            While  the  program  is  searching  for  the text, the bottom
  409.         display line is changed to say "Scanning".
  410.  
  411.            If the text is found, the line containing it is displayed  as
  412.         a high-intensity line (bright color).
  413.  
  414.            If the text is NOT found, the bottom line (25) is changed  to
  415.         say '*** text not found ***', and the display remains unchanged.
  416.  
  417.            To find the next occurrance of the same text,  use the A)gain
  418. |       command, or press the A key.
  419.  
  420.            If the PCED keyboard enhancement program is installed, the
  421.         up/down cursor keys may be used to recall and edit previously
  422.         entered Scan/Find text.
  423.  
  424.            In a shared file environment, if the file changes while being
  425. |       listed, the file position may become invalid.  Use the 7 letter
  426.         command to insure proper file synchronization, or use the C
  427.         (shared) option.
  428.                                                       DRLIST     Page 9
  429.  
  430.  Filtering
  431.  ---------
  432.  
  433.            Filtering is the term used to describe the process that DRLIST
  434.         uses to format file data for displaying on a monitor. After data
  435.         is read from a file, it is filtered. The method of filtering
  436.         depends upon the options in effect.
  437.  
  438.            For a typical ASCII text file, the filter removes carriage
  439.         return and line feed characters, and expands TAB characters.
  440.  
  441. |          The S, E, and * (asterisk) commands determine whether
  442.         characters above ASCII-127 are displayed.  If the hi-bit option
  443. |       is off (S command), the filter strips the high order bit from
  444. |       each character.  If the hi-bit option is on (E command), all
  445.         characters, including graphic characters above ASCII-127, are
  446.         displayed.
  447.  
  448.            The * (asterisk) command displays only ASCII characters
  449.         below 128 (x'80'), but treats the special characters x'8A' and
  450.         x'8D' as line-feed and carriage-return control characters.  Any
  451.         other characters above 127 are ignored.
  452.  
  453.            The Wrap option causes the filtering to insure that no line
  454.         exceeds the width of the monitor, e.g. 80 characters.
  455.  
  456. |          The hex dump option (D key) causes the filtering to reformat
  457.         the file data into a DEBUG-like display format. The largest
  458.         file that can be "dumped" is 1 million bytes.
  459.  
  460.         NOTE: The EOF control character is ignored in this version.
  461.         ===========================================================
  462.                                                       DRLIST     Page 10
  463.  
  464.  Update history
  465.  --------------
  466.  
  467.  Lines beginning with | denote changes to the latest version.
  468.  
  469.         Version 5.83, May 6, 1986.
  470.           SOL, version 1, adds:
  471.             - line numbering, changes use of +, -, and ctrl-HOME
  472.             - alt-H hex dump display
  473.             - allows cloning of Wrap, Hibit, alt-R ruler, Kybd flush
  474.             - adds indication of command toggles to top line
  475.             - corrects and improves Scan and Find
  476.  
  477.         Version 5.84, May 8, 1986.
  478.             - add * command to toggle special document filter,
  479.               all characters above x'80', except 8A and 8D, are
  480.               suppressed
  481.             - correct hex dump display producing duplicate
  482.               last line
  483.             - add alt-D command (like alt-H) to toggle hex dump
  484.             - change status line H indicator to 7/8/*
  485.  
  486.         Version 5.85, May 9, 1986.
  487.             - add alt-S (like C) to toggle Shared option
  488.             - correct Scan failure when using Shared option
  489.               with several files (widcard used)
  490.             - improve speed of hex dump display
  491.  
  492.         Version 5.86, May 10, 1986
  493.             - correction to TOF and EOF status messages
  494.  
  495.         Version 5.87, May 11, 1986
  496.             - correct loop displaying short files
  497.             - use hibit (7 or 8) to suppress control chars in hex dump
  498.               for Printing
  499.  
  500.         Version 5.88, May 13, 1986
  501.             - correct Scan/Find not checking last character of records
  502.  
  503.         Version 5.89, May 14, 1986
  504.             - correct Filter loop when last byte of file block is a CR
  505.             - correct Print ignoring blank lines
  506.  
  507.         Version 5.90, May 18, 1986
  508.             - correct not displaying last record of file if file does
  509.               not end in an LF
  510.             - change hex dump to use 7/8/* options
  511.  
  512.         Version 5.91, May 19, 1986
  513.             - correct testing and display of M monitor retrace option
  514.  
  515. |       Version G, June 14, 1986
  516. |          - special version called DRLIST for use with BBS Doors or CTTY
  517.                                                       DRLIST     Page 11
  518.  Special ANSI version
  519.  --------------------
  520.  
  521. |       The special ANSI version of DRLIST uses DOS function 21 hex for
  522. |       all display I/O. This means that the display will be slower,
  523. |       but it also means that ANSI escape squences can be displayed,
  524. |       and that DRLIST can be used by a remote computer via the CTTY
  525. |       or BBS DOORS facility.
  526.  
  527. |       The use of function keys, e.g. F1, and the cursor positioning
  528. |       keys are not supported by all DOS environments or communications
  529. |       programs. Therefore, the cursor positioning keys have been
  530. |       redefined to be the numbers over those keys. By setting NumLock
  531. |       on, the cursor positioning keys will have effect. For example,
  532. |       the PgUp key may not work, but the 9 key will perform the PgUp
  533. |       function. The Fn (function) keys have had letters assigned to them.
  534.  
  535.  
  536.  Restrictions
  537.  ------------
  538.  
  539. |       o  ANSI.SYS is required. (an equivalent may be used)
  540. |          _____________________
  541.  
  542.         o  The program requires 60K bytes of memory. If more memory is
  543.            available, it is used to store more of the file in memory.
  544.  
  545.         o  The line number is currently limited to 65535.
  546.  
  547.         o  The file size is limited to 16 million bytes.
  548.  
  549.         o  PC-DOS Version 2.0 or later is required.
  550.  
  551.  
  552.         Written by Vernon Buerg for the  IBM PC using DOS 2.0 or
  553.         later, including DOS 3.1.
  554.  
  555.         DRLIST is supplied for personal, private use. Feel free to
  556.         distribute DRLIST given these restrictions:
  557.  
  558.           o  the program shall be supplied in its original,
  559.              unmodified form, which includes this documentation;
  560.  
  561.           o  no fee is charged.
  562.  
  563.           o  commmercial use is prohibited.
  564.  
  565.           o  the program may not be included - or bundled - with
  566.              other goods or services. Exceptions may be granted
  567.              upon written request only.
  568.  
  569.         If you are using DRLIST and find it of value, your gift in
  570.         any amount ($15 suggested) will be greatly appreciated.
  571.         Makes checks payable to Vernon D. Buerg. Thank you.
  572.  
  573.         For use by corporations and other institutions, please
  574.         contact me at AAI Systems for a site licensing agreement.
  575.  
  576.                 Vernon D. Buerg
  577.                 456 Lakeshire Drive
  578.                 Daly City, CA 94015-4223
  579.  
  580.                 Data: (415) 994-2944 (VOR BBS)
  581.                 Compuserve: 70007,1212
  582.  
  583.